package com.his.bean;

import java.io.Serializable;

/**
 * 医生与医院关联表
 * @TableName dzm_his_hospital_doctor_relation
 */
public class DzmHisHospitalDoctorRelation implements Serializable {
    /**
     * id
     */
    private Long rid;

    /**
     * 创建时间
     */
    private Integer createTime;

    /**
     * 更新时间
     */
    private Integer updateTime;

    /**
     * 医院id
     */
    private Integer hospitalId;

    /**
     * 科室id
     */
    private Integer departmentId;

    /**
     * 医生id
     */
    private Integer physicianid;

    /**
     * 权限
     */
    private String rightList;

    /**
     * 职称
     */
    private Integer titleLevel;

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Long getRid() {
        return rid;
    }

    /**
     * id
     */
    public void setRid(Long rid) {
        this.rid = rid;
    }

    /**
     * 创建时间
     */
    public Integer getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新时间
     */
    public Integer getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Integer updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 医院id
     */
    public Integer getHospitalId() {
        return hospitalId;
    }

    /**
     * 医院id
     */
    public void setHospitalId(Integer hospitalId) {
        this.hospitalId = hospitalId;
    }

    /**
     * 科室id
     */
    public Integer getDepartmentId() {
        return departmentId;
    }

    /**
     * 科室id
     */
    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    /**
     * 医生id
     */
    public Integer getPhysicianid() {
        return physicianid;
    }

    /**
     * 医生id
     */
    public void setPhysicianid(Integer physicianid) {
        this.physicianid = physicianid;
    }

    /**
     * 权限
     */
    public String getRightList() {
        return rightList;
    }

    /**
     * 权限
     */
    public void setRightList(String rightList) {
        this.rightList = rightList;
    }

    /**
     * 职称
     */
    public Integer getTitleLevel() {
        return titleLevel;
    }

    /**
     * 职称
     */
    public void setTitleLevel(Integer titleLevel) {
        this.titleLevel = titleLevel;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisHospitalDoctorRelation other = (DzmHisHospitalDoctorRelation) that;
        return (this.getRid() == null ? other.getRid() == null : this.getRid().equals(other.getRid()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getHospitalId() == null ? other.getHospitalId() == null : this.getHospitalId().equals(other.getHospitalId()))
            && (this.getDepartmentId() == null ? other.getDepartmentId() == null : this.getDepartmentId().equals(other.getDepartmentId()))
            && (this.getPhysicianid() == null ? other.getPhysicianid() == null : this.getPhysicianid().equals(other.getPhysicianid()))
            && (this.getRightList() == null ? other.getRightList() == null : this.getRightList().equals(other.getRightList()))
            && (this.getTitleLevel() == null ? other.getTitleLevel() == null : this.getTitleLevel().equals(other.getTitleLevel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRid() == null) ? 0 : getRid().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getHospitalId() == null) ? 0 : getHospitalId().hashCode());
        result = prime * result + ((getDepartmentId() == null) ? 0 : getDepartmentId().hashCode());
        result = prime * result + ((getPhysicianid() == null) ? 0 : getPhysicianid().hashCode());
        result = prime * result + ((getRightList() == null) ? 0 : getRightList().hashCode());
        result = prime * result + ((getTitleLevel() == null) ? 0 : getTitleLevel().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", rid=").append(rid);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", hospitalId=").append(hospitalId);
        sb.append(", departmentId=").append(departmentId);
        sb.append(", physicianid=").append(physicianid);
        sb.append(", rightList=").append(rightList);
        sb.append(", titleLevel=").append(titleLevel);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}